if (window.top == window){
  window.top.location.href = getContextPath() + "/system/main";
}
function getContextPath(){
	var localObj = window.location;
	var contextPath = localObj.pathname.split("/")[1];
	var basePath = localObj.protocol+"//"+localObj.host+"/"+contextPath;
	return basePath;
}